#include "SDL.h"
#include "Animation.h"
#include "Structures.h"
#include "Defines.h"
#include "Player.h"

SDL_Surface* bg;
int main(int argc, char* args[])
{
	SDL_Init(SDL_INIT_EVERYTHING);

	bg = SDL_SetVideoMode(Defines::SCREEN_WIDTH, Defines::SCREEN_HEIGHT, 32, SDL_HWSURFACE | SDL_DOUBLEBUF);

	SDL_WM_SetCaption("GameEngine", NULL);

	Point pos;
	pos.x = 0;
	pos.y = 0;

	Player* player = new Player;

	//Animation* myAnimation = new Animation("./Content/Images/yoshi.bmp", 64, 64, 1, 8);
	for(int i = 0; i < 90; i++)
	{
		//myAnimation->DrawAnimation(bg, pos.x, pos.y);
		player->OnDraw(bg);
		player->Move(Defines::DOWN);
		SDL_Flip(bg);
	}

	
	SDL_Delay(2000);
	SDL_Quit();
	return 0;
}